package com.guguskins.back;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestTemplate;
@EnableScheduling
@EnableTransactionManagement
@MapperScan(basePackages = "com.guguskins.back.mapper")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class GuguskinsBackApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuguskinsBackApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
